<template>
  <div class="nav-wrapper" :class="classPrefix && `${classPrefix}-wrapper`">
    <div class="content"  :class="classPrefix && `${classPrefix}-content`   ">
      <slot></slot>
    </div>
    <Nav/>
  </div>
</template>

<script lang="ts">
  export default {
    props: ['classPrefix'],
    name: 'Layout'
  };
</script>

<style lang="scss" scoped>
  .nav-wrapper {
    flex-direction: column;
    height: 100vh;
    display: flex;
  }

  .content {
    background: #f8f8f8;
    overflow: auto;
    flex-grow: 1;
  }
</style>
